package com.qf.advice;

import org.aspectj.lang.annotation.AfterThrowing;
import org.springframework.aop.ThrowsAdvice;

/**
 * 创建者: QF-SUN
 * 创建时间: 2023/4/18 10:00
 * 描述:
 */
public class MyThrowingAdvice implements ThrowsAdvice {

    public void afterThrowing(Exception ex) {
        System.out.println("异常：回滚事务");
    }
}
